/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
        for (int i = 1000; i < 2000; i++) {
            if((i % 4 == 0&&i %100 != 0) ||(i % 400 == 0)){
                System.out.println(i + "是闰年");
            }

        }
    }
}